import 'package:spendbook/common/http.dart';

class Chart extends Http {
  final String url = '/chart';

  Future<List<dynamic>> record() async {
    List<dynamic> res = await httpGet('${url.toString()}/record');
    return res;
  }

  Future<Map<String, dynamic>> project() async {
    Map<String, dynamic> res = await httpGet('${url.toString()}/project');
    return res;
  }

  Future<Map<String, dynamic>> card() async {
    Map<String, dynamic> res = await httpGet('${url.toString()}/card');
    return res;
  }

  Future<List<dynamic>> statistics() async {
    List<dynamic> res = await httpGet('${url.toString()}/statistics');
    return res;
  }
}
